﻿#ifndef CAlarmRecordQuery_H
#define CAlarmRecordQuery_H
/********************************************************************************
** @ Date:2025/08/22
** @ Author: HanJiaXin
** @ Description:报警记录查询对话框
** @ Version:1.0.0
** @ ClassName:CAlarmRecordQuery
** @ Fun:
********************************************************************************/
#include <QDialog>
#include "ui_CAlarmRecordQuery.h"
#include "CDevDataCam.h"

class CAlarmRecordQuery : public QDialog
{
	Q_OBJECT

public:
	CAlarmRecordQuery(QWidget *parent = nullptr);
	~CAlarmRecordQuery();

private:
	void initConnect();//初始化槽函数连接
	void setStyleSheetFile();//设置样式文件
	void initData();//初始化界面中控件的值

private slots:
	void slotPushButtonQuery();//点击查询按钮
	void slotDelDay();
	void slotAddDay();
	void slotUp();//点击上一页
	void slotDown();//点击下一页
	void slotExport();//点击导出按钮
	void slotShowImg(QString sUrl);
	void slotResult();//点击报告查询按钮

private:
	Ui::CAlarmRecordQueryClass ui;
	QMap<int, QString> m_mapAlarmType;
	int m_nPerPageCount;    //每页显示的行数
	int m_nPageCount;		//总页数
	int m_nCurrentPage;		//当前页数
	int m_nTotalCount;		//记录总数
};

#endif